<template>
    <div>
        <div>
            <a-tooltip :tips="'我是tooltip'">
                <a-button>鼠标移上来</a-button>
            </a-tooltip>
        </div>
        <pre class="language-html"><code>{{ `<a-tooltip :tips="'我是tooltip'">
    <a-button>鼠标移上来</a-button>
</a-tooltip>` }}</code></pre>
        <div v-for="type in typeList" :key="type.name" class="c-m-t-m">
            <p>{{ type.name }}</p>
            <a-table
                :headerList="type.headerList"
                :dataList="type.dataList"
            ></a-table>
        </div>
    </div>
</template>

<script>
export default {
    data() {
        return {
            typeList: [
                {
                    name: 'props',
                    headerList: [
                        { name: 'name', text: '名称' },
                        { name: 'remark', text: '说明' },
                        { name: 'type', text: '类型' },
                        { name: 'default', text: '默认值' },
                    ],
                    dataList: [
                        { name: 'popPlacement', remark: '下拉框弹出的位置', type: 'top | top-start | top-end | right | right-start | right-end | bottom | bottom-start | bottom-end | left | left-start | left-end', default: 'bottom' },
                        { name: 'size', remark: '尺寸', type: 'xs | s | m | l | xl', default: 'm' },
                        { name: 'sharp', remark: '是否尖角', type: 'boolean', default: 'false' },
                        { name: 'tips', remark: '提示的文字内容', type: 'string', default: 'null' },
                    ],
                }
            ]
        }
    },
}
</script>